package pers.zh.parking.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import pers.zh.parking.di.module.LotModule;
import pers.zh.parking.mvp.contract.LotContract;

import com.jess.arms.di.scope.ActivityScope;

import pers.zh.parking.mvp.ui.activity.LotManageActivity;

@ActivityScope
@Component(modules = LotModule.class, dependencies = AppComponent.class)
public interface LotComponent {

    void inject(LotManageActivity activity);

    @Component.Builder
    interface Builder {

        @BindsInstance
        LotComponent.Builder view(LotContract.View view);

        LotComponent.Builder appComponent(AppComponent appComponent);

        LotComponent build();
    }
}